package com.google.gwt.sample.dynatablerf.client.events;

import java.util.Set;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.sample.dynatablerf.shared.ProjetoProxy;
import com.google.gwt.sample.dynatablerf.shared.ServicoProjetoProxy;

public class ServicoSelectionChangeEvent extends
		GwtEvent<ServicoSelectionChangeEventHandler> {

	public static Type<ServicoSelectionChangeEventHandler> TYPE = new Type<ServicoSelectionChangeEventHandler>();

	private Set<ServicoProjetoProxy> servicoProjetoProxySet;
	private ProjetoProxy projetoProxy;
	
	public ServicoSelectionChangeEvent(
			Set<ServicoProjetoProxy> servicoProjetoProxySet, ProjetoProxy projetoProxy) {
		super();
		this.servicoProjetoProxySet = servicoProjetoProxySet;
		this.projetoProxy = projetoProxy;
	}

	@Override
	protected void dispatch(ServicoSelectionChangeEventHandler handler) {

		handler.onServicoSelectionChange(this);
	}

	@Override
	public Type<ServicoSelectionChangeEventHandler> getAssociatedType() {

		return TYPE;
	}

	public Set<ServicoProjetoProxy> getServicoProjetoProxySet() {
		return servicoProjetoProxySet;
	}

	public void setServicoProjetoProxySet(
			Set<ServicoProjetoProxy> ServicoProjetoProxySet) {
		this.servicoProjetoProxySet = ServicoProjetoProxySet;
	}

	public ProjetoProxy getProjetoProxy() {
		return projetoProxy;
	}

	public void setProjetoProxy(ProjetoProxy projetoProxy) {
		this.projetoProxy = projetoProxy;
	}

}